package com.cgq.pro.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

import com.cgq.base.entity.Base;

@Entity
@Table(name="fd_attachment")
public class Attachment extends  Base{
	
	private String id;
	/** 业务数据主键 **/
	private String businessId;
	/** 业务模块类型 **/
	private String businessType;
	/** 原始名称  **/
	private String originalName;
	/** 扩展名 **/
	private String extName;
	/**文件类型**/
	private String fileType;
	/**文件大小**/
	private long fileSize;
	/** 路径 **/
	private String filePath;
	
	@Column(name="land_id")
	private String land_Id;
	
	@Column(name="refid")
	private String refId;
	
	@Id
	@GenericGenerator(name="attachment_ge",strategy="uuid")
	@GeneratedValue(generator="attachment_ge")
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	
	@Column(name="businessid")
	public String getBusinessId() {
		return businessId;
	}
	public void setBusinessId(String businessId) {
		this.businessId = businessId;
	}
	
	@Column(name="businesstype")
	public String getBusinessType() {
		return businessType;
	}
	public void setBusinessType(String businessType) {
		this.businessType = businessType;
	}
	
	@Column(name="originalname")
	public String getOriginalName() {
		return originalName;
	}
	public void setOriginalName(String originalName) {
		this.originalName = originalName;
	}
	
	@Column(name="extname")
	public String getExtName() {
		return extName;
	}
	public void setExtName(String extName) {
		this.extName = extName;
	}
	
	@Column(name="filetype")
	public String getFileType() {
		return fileType;
	}
	public void setFileType(String fileType) {
		this.fileType = fileType;
	}
	
	@Column(name="filesize")
	public long getFileSize() {
		return fileSize;
	}
	public void setFileSize(long fileSize) {
		this.fileSize = fileSize;
	}
	
	@Column(name="path")
	public String getFilePath() {
		return filePath;
	}
	public void setFilePath(String filePath) {
		this.filePath = filePath;
	}
	public String getLand_Id() {
		return land_Id;
	}
	public void setLand_Id(String landId) {
		this.land_Id = landId;
	}
	public String getRefId() {
		return refId;
	}
	public void setRefId(String refId) {
		this.refId = refId;
	}
}
